//
// Created by TheHun on 2021/6/17.
//

#ifndef TESTREADXLS_RAWDATA_H
#define TESTREADXLS_RAWDATA_H

#define MAX_LINE_SIZE 100000

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

typedef struct RawData {
    char separator;
    double** data;
    int rowSize;
    int colSize;
} RawData;

RawData* NewRawData(char separator, int rowSize, int colSize);
RawData* NewCsvData(int rowSize, int colSize);
int GetTotalRowCount(FILE * fp);
int GetTotalColCount(FILE * fp, char separator);
void loadDataFromFile(RawData* target, FILE* fp);
int isDigitChar(char digit);

#endif //TESTREADXLS_RAWDATA_H

